import axios from 'axios';
axios.defaults.baseURL ="/api/"
axios.interceptors.request.use(
  config => {
    return config;
  },
  err => {
    return Promise.reject(err);
  }
);
 
// http response 拦截器
axios.interceptors.response.use(
  response => {
    return response;
    
  },
  error => {
   
  }
);
export default axios;
